﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace ClassDllTest
{
    class ClassDll
    {
        [DllImport("ClassDll.dll", EntryPoint = "?Print@ClassDll@@QAEXXZ")]
        public static extern void Print();
        public void PRINT()
        {
            Print();
        }
    }
    class Program
    {
//         [DllImport("ClassDll.dll", EntryPoint = "?Print@ClassDll@@QAEXXZ")]
//         public static extern void Print();
        static void Main(string[] args)
        {
            ClassDll A = new ClassDll();
            A.PRINT();
            A.PRINT();
            //ClassDll.Print();
        }
    }
}
// ??4ClassDll@@QAEAAVO@ABVO@@Z :CLass
// ?Print@ClassDll@@QAEXXZ  : Print
